package com.wt.admin.controller.sys;

import com.aizuda.easy.security.domain.Rep;
import com.wt.admin.domain.dto.sys.SysLogFindDTO;
import com.wt.admin.domain.entity.sys.SysOperationLogEntity;
import com.wt.admin.service.sys.SysOperationLogService;
import com.wt.admin.util.PageUtil;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import jakarta.annotation.Resource;

@RestController
@RequestMapping("operationLog")
public class SysOperationLogController {

    @Resource
    private SysOperationLogService sysOperationLogService;

    @PostMapping("find")
    public Rep<PageUtil.PageVO<SysOperationLogEntity>> findOperationLogs(@RequestBody PageUtil.PageDTO<SysLogFindDTO> data){
        return Rep.ok(sysOperationLogService.find(data));
    }

}
